
<form id="form_edit">
<fieldset><legend>物料信息</legend>
<input type="hidden" name="id" value="{[$smarty.request.id]}" />
<table>
	<tr>
		<td width="20%" align="right">流水号：</td>
		<td width="30%">{[$result.id]}（{[$result.oper_t]}）</td>
		<td width="20%" align="right">状态：</td>
		<td width="30%">{[$result.status_t]}</td>
	</tr>
	<tr>
		<td align="right">采购单：</td>
		<td><input type="text" name="purchase" id="purchase" size="12"
			value="{[$result.purchase]}:{[$result.supplier_t]}"></td>
		<td align="right">产品：</td>
		<td><input type="text" name="mold" id="mold" size="16"
			value="{[$result.mold]}:{[$result.mold_t]}"></td>
	</tr>
	<tr>
		<td align="right">名称：</td>
		<td colspan="3"><textarea rows="2" name="name" id="name" cols="55">{[$result.name]}</textarea></td>
	</tr>
	<tr>
		<td align="right">规格：</td>
		<td colspan="3"><textarea rows="2" name="standard" id="standard" cols="55">{[$result.standard]}</textarea></td>
	</tr>
	<tr>
		<td align="right">数量：</td>
		<td><input type="text" name="amount2" id="amount2" size="8" value="{[$result.amount2|string_float]}"></td>
		<td align="right">单位：</td>
		<td><input type="text" name="unit2" id="unit2" size="8" value="{[$result.unit2]}"> <select name='unit2_t' id='unit2_t'>
			{[html_options options=$unit_option selected=-]}
		</select></td>
	</tr>
	<tr>
		<td align="right">单价：</td>
		<td><input type="text" name="price2" id="price2" size="8" value="{[$result.price2|string_price]}"></td>
		<td align="right">税率：</td>
		<td><input type="text" name="tax" id="tax" size="8" value="{[$result.tax|string_float]}" title="单位：%"></td>
	</tr>
	<tr>
		<td width="20%" align="right">总价：</td>
		<td width="30%"><input type="text" name="total" id="total" size="8" value="{[$result.total|string_price]}"></td>
		<td width="20%" align="right">币种：</td>
		<td width="30%"><select name='currency'>
			{[html_options options=$currency_option selected=$result.currency]}
		</select></td>
	</tr>
	<tr>
		<td align="right">备注：</td>
		<td colspan="3"><textarea rows="2" name="content" id="content" cols="55">{[$result.content]}</textarea></td>
	</tr>
</table>
</fieldset>

<fieldset><legend>入库单位</legend>
<table>
	<tr>
		<td width="20%" align="right">数量：</td>
		<td width="30%"><input type="text" name="amount" size="8" value="{[$result.amount|string_float]}" title="abcd"></td>
		<td width="20%" align="right">单位：</td>
		<td width="30%"><input type="text" name="unit" id="unit" size="8" value="{[$result.unit]}">
		<select name='unit_t' id='unit_t'>
			{[html_options options=$unit_option selected=-]}
		</select></td>			
	</tr>
</table>
</form>

<script type="text/javascript" src="js/material/in/record/edit.js?r={[$smarty.now]}"></script>
